package org.tinygroup.bizframe.dao.inter.constant;

import org.tinygroup.bizframe.dao.inter.pojo.TsysDictItem;
import org.tinygroup.tinysqldsl.base.Column;
import org.tinygroup.tinysqldsl.base.Table;

/**
 * <!-- begin-user-doc --> 字典项表 * <!-- end-user-doc -->
 */
public class TsysDictItemTable extends Table {

	/**
	 * <!-- begin-user-doc --> <!-- end-user-doc -->
	 */
	public static final TsysDictItemTable TSYS_DICT_ITEM_TABLE = new TsysDictItemTable();

	/**
	 * <!-- begin-user-doc --> ID * <!-- end-user-doc -->
	 */
	public final Column ID = new Column(this, "id");
	/**
	 * <!-- begin-user-doc --> 字典项编号 * <!-- end-user-doc -->
	 */
	public final Column DICT_ITEM_CODE = new Column(this, "dict_item_code");
	/**
	 * <!-- begin-user-doc --> 字典项名称 * <!-- end-user-doc -->
	 */
	public final Column DICT_ITEM_NAME = new Column(this, "dict_item_name");
	/**
	 * <!-- begin-user-doc --> 字典项排序 * <!-- end-user-doc -->
	 */
	public final Column DICT_ITEM_ORDER = new Column(this, "dict_item_order");
	/**
	 * <!-- begin-user-doc --> 字典条目ID * <!-- end-user-doc -->
	 */
	public final Column DICT_ENTRY_ID = new Column(this, "dict_entry_id");

	private static java.util.Map<String, String> mappings = new java.util.Hashtable<String, String>();

	public String getFieldName(String attrName) {
		return mappings.get(attrName);
	}

	public TsysDictItemTable() {
		super("tsys_dict_item");
	}

	public TsysDictItemTable(String schemaName) {
		super(schemaName, "tsys_dict_item");
	}

	public TsysDictItemTable(String schemaName, String alias) {
		super(schemaName, "tsys_dict_item", alias);
	}

	public TsysDictItemTable(String schemaName, String alias, boolean withAs) {
		super(schemaName, "tsys_dict_item", alias, withAs);
	}

	public boolean isAutoGeneratedKeys() {
		return true;
	}

	public Class<TsysDictItem> getPojoType() {
		return TsysDictItem.class;
	}

	static {
		mappings.put("id", "id");
		mappings.put("dictItemCode", "dict_item_code");
		mappings.put("dictItemName", "dict_item_name");
		mappings.put("dictItemOrder", "dict_item_order");
		mappings.put("dictEntryId", "dict_entry_id");

	}

}
